home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.n / lsearch.n < prev    next >
Text File  |  1995-07-25  |  3KB  |  67 lines

  1.  
  2.  
  3.  
  4.      llllsssseeeeaaaarrrrcccchhhh((((nnnn))))                  TTTTccccllll ((((7777....0000))))                  llllsssseeeeaaaarrrrcccchhhh((((nnnn))))
  5.  
  6.  
  7.  
  8.      _________________________________________________________________
  9.  
  10.      NNNNAAAAMMMMEEEE
  11.           lsearch - See if a list contains a particular element
  12.  
  13.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.           llllsssseeeeaaaarrrrcccchhhh ?_m_o_d_e? _l_i_s_t _p_a_t_t_e_r_n
  15.      _________________________________________________________________
  16.  
  17.  
  18.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.           This command searches the elements of _l_i_s_t to see if one  of
  20.           them  matches _p_a_t_t_e_r_n.  If so, the command returns the index
  21.           of the first matching element.  If not, the command  returns
  22.           ----1111.   The  _m_o_d_e  argument  indicates how the elements of the  |
  23.           list are to be matched against _p_a_t_t_e_r_n and it must have  one  |
  24.           of the following values:                                      |
  25.  
  26.           ----eeeexxxxaaaacccctttt                                                             ||
  27.                The  list  element must contain exactly the same string  |
  28.                as _p_a_t_t_e_r_n.                                              |
  29.  
  30.           ----gggglllloooobbbb                                                              ||
  31.                _P_a_t_t_e_r_n  is  a  glob-style  pattern  which  is  matched  |
  32.                against each list element using the same rules  as  the  |
  33.                ssssttttrrrriiiinnnngggg mmmmaaaattttcccchhhh command.                                    |
  34.  
  35.           ----rrrreeeeggggeeeexxxxpppp                                                            ||
  36.                _P_a_t_t_e_r_n  is treated as a regular expression and matched  |
  37.                against each list element using the same rules  as  the  |
  38.                rrrreeeeggggeeeexxxxpppp command.                                          |
  39.  
  40.           If _m_o_d_e is omitted then it defaults to ----gggglllloooobbbb.
  41.  
  42.  
  43.      KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  44.           list, match, pattern, regular expression, search, string
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/17/95)
  64.  
  65.  
  66.  
  67.